package com.cty.A_GeneralDataStructures.C_Tree.BinaryTree;

import com.cty.F_common.DataItem;

/**
 * @Auther: cty
 * @Date: 2020/6/15 22:14
 * @Description: 树节点
 * @version: 1.0
 */
public class Node {
    public DataItem data;
    public Node leftChild;
    public Node rightChild;

    public Node(DataItem data){
        this.data = data;
    }

    public void displayNode(){
        System.out.print(data.getKey() + " ");
    }
}  // end Node
